<?php if ($rules): ?>
<?php foreach ($rules as $rule): ?>
<div class="form-group span-left">
    <label>
        【<?= $rule->from_currency->title ?>】
        <?= Config::get('summer.hjd::tf_type.'.$rule->tf_type) ?>
        【<?= $rule->to_currency->title ?>】
    </label>
    <p class="help-block">
        最小转账数量:
        <a class="text-edit editable editable-click" href="#" data-type="text" data-title="" data-table="summer_hjd_tf_rule" data-pk="<?= $rule->id ?>" data-name="tf_min"><?= $rule->tf_min ?></a>
        ,最大转账数量:
        <a class="text-edit editable editable-click" href="#" data-type="text" data-title="" data-table="summer_hjd_tf_rule" data-pk="<?= $rule->id ?>" data-name="tf_max"><?= $rule->tf_max ?></a>
        ,转账整数倍:
        <a class="text-edit editable editable-click" href="#" data-type="text" data-title="" data-table="summer_hjd_tf_rule" data-pk="<?= $rule->id ?>" data-name="tf_mul"><?= $rule->tf_mul ?></a>
        ,转账手续费:
        <a class="text-edit editable editable-click" href="#" data-type="text" data-title="" data-table="summer_hjd_tf_rule" data-pk="<?= $rule->id ?>" data-name="tf_fee"><?= $rule->tf_fee ?></a>
        %
    </p>
    <div class="field-switch">
        <p class="help-block">规则描述:</p>
    </div>
    <p>
        <a class="textarea-edit editable editable-pre-wrapped editable-click" href="#" data-type="textarea" data-title="规则描述" data-table="summer_hjd_tf_rule" data-pk="<?= $rule->id ?>"  data-name="tf_text" ><?= $rule->tf_text ?></a>
    </p>
    <div class="field-switch">
        <p class="help-block">转账开关:</p>
    </div>
    <label class="custom-switch switch">
        <input type="checkbox" data-table="summer_hjd_tf_rule" data-id="<?= $rule->id ?>" data-field="status" <?php echo $rule->status==1 ? 'checked="checked"' : '';  ?> >
        <span>
            <span>开</span>
            <span>关</span>
        </span>
        <a class="slide-button"></a>
    </label>
</div>
<?php endforeach ?>
<?php else: ?>
<li class="no-data">暂未配置信息</li>
<?php endif ?>